package edu.sctu.zhengsenwen.month201506.day20150619.abstractdemo;

/**
 * Created by user15 on 2015/6/19.
 */
public class UseAbstractClassDemo extends AbstractClassDemo {

    public UseAbstractClassDemo(){

        setValue();
        System.out.println(numberOne +" * "+numberTwo+" = "+caculate());
    }

    public double caculate(){

        double result = numberOne * numberTwo;

        return result;
    }


    public static void main(String[] args) {

        UseAbstractClassDemo abstractClassDemo = new UseAbstractClassDemo();
    }
}
